<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<script type="text/javascript">
	jQuery().ready(function(){
		// simple accordion
		jQuery('#list1a').accordion();
		jQuery('#list1b').accordion({
			autoheight: false
		});
	});
</script>
<div id="cours_container">
	<span id="c-r">Cr&eacute;dits r&eacute;ussis: </span><span id="c-r-p">${etudiant.nbCreditReussit}</span>
	<div id="separator"></div>
	<span id="c-i">Cr&eacute;dits inscrits: </span><span id="c-i-p"><c:out value="${creditsInscrits}"/></span>
	<div id="separator"></div>
	<span id="m-c">Moyenne cumulative: </span><span id="m-c-p"><c:out value="${moyenneCumulative}"/></span>
	
	<div id="main-accor">
		<div class="basic" style="float:left;"  id="list1b">
			<c:forEach var="uneSession" items="${sessions}">
				<a><span><c:out value="${uneSession.nomSession}"/></span><span id="align-right"><c:out value="${uneSession.moyenne}"/></span></a>
				<div>
					<table width="280" border="0" id="tab_cours">
						<c:forEach var="unResultat" items="${uneSession.resultats}">
							<tr>
								<td id="titre_cours"><c:out value="${unResultat.sigle}"/></td>
								<td><c:out value="${unResultat.nbCredit}"/></td>
								<td><c:out value="${unResultat.note}"/></td>
							</tr>
						</c:forEach>
					</table>
				</div>
			</c:forEach>
		</div>
	</div>
</div>